import request from '@/utils/request'

export const api = {
  add: 'api/milepost_record/add',
  monthAgeGrowth: 'api/milepost_record/getMonthAgeGrowth',
  childrenDetails: 'api/milepost_record/get'
}

export function getMonthAgeGrowth (params = {}) {
  return request({
    url: api.monthAgeGrowth,
    method: 'post',
    params
  })
}

export function addMilepostRecord (params = {}) {
  return request({
    url: api.add,
    method: 'post',
    params
  })
}

export function getChildrenDetails (params = {}) {
  return request({
    url: api.childrenDetails,
    method: 'post',
    params
  })
}
